package com.hqyj.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @Description 自定义读取application-sms文件
 * @Autor 伍军
 * @Date 2022/9/23 9:19
 * @Version 1.0
 **/
@Component
@Data
@PropertySource(value = "application-sms.properties",encoding = "utf-8")
public class SmsConfig {

    @Value("${secretId}")
    private String secretId;
    @Value("${secretKey}")
    private String secretKey;
    @Value("${smsTempId}")
    private String smsTempId;
    @Value("${smsSdk}")
    private String smsSdk;
    @Value("${smsName}")
    private String smsName;
}
